#ifndef __ITEM_H
#define __ITEM_H

typedef id_t ITEM_TYPE;
static const ITEM_TYPE ITEM_POTION		= 0;
static const ITEM_TYPE ITEM_KEY			= 1;
static const ITEM_TYPE ITEM_WEAPON		= 2;
static const ITEM_TYPE ITEM_ARMOR		= 3;
static const ITEM_TYPE ITEM_AMMO		= 4;
static const ITEM_TYPE ITEM_QUEST		= 5;
static const ITEM_TYPE ITEM_CARD		= 6;
static const ITEM_TYPE MAX_ITEM_TYPES	= 7; 

struct SItemType
{
	ITEM_TYPE	Type;
	char		Name[32];
};

static const SItemType g_ItemTypeTable[MAX_ITEM_TYPES] = 
{
	{ ITEM_POTION,	"Potion"	},
	{ ITEM_KEY,		"Key"		},
	{ ITEM_WEAPON,	"Weapon"	},
	{ ITEM_ARMOR,	"Armor"		},
	{ ITEM_AMMO,	"Ammo"		},
	{ ITEM_QUEST,	"Quest"		},
	{ ITEM_CARD,	"Card"		}
};

struct SItem
{
	ITEM_TYPE			Type;
	char				Name[128];

	void				SetName( const char* szName );

	SItem();
	SItem( ITEM_TYPE Type, const char* szName );
};

#endif // _ITEM_H